package com.ccnu.sm.jdbc;/*
 * @author raohj
 * @date 2019/11/1120:13
 * @description add your comment
 */

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class RCustMapper implements RowMapper<RCust> {
    @Override
    public RCust mapRow(ResultSet rs, int rowNum) throws SQLException {
        RCust cust = new RCust();
        cust.setCustNo(rs.getString("cust_no"));
        cust.setCustType(rs.getString("cust_type"));
        cust.setCustName(rs.getString("cust_name"));
        cust.setIdType(rs.getString("id_type"));
        cust.setIdCode(rs.getString("id_code"));
        cust.setBankAcct(rs.getString("bank_acct"));
        return cust;
    }
}
